package com.hebeiboruan.common.exception.system.user;


import com.hebeiboruan.common.exception.CommonResultEnum;

/**
 * @author 刘焕林
 * @date 2023/11/16
 */
public enum UserResultEnum implements CommonResultEnum {
    ACCOUNT_REPETITION("2001","账户已存在"),
    ACCOUNT_IS_NULL("2002","账户不存在"),
    CHECK_COUNT_NULL("200","用户不存在"),
    CHECK_COUNT_TRUE("200","用户存在"),
    PASSWORD_ERROR("2003","账号或密码有误"),
    VERIFICATION_CODE_NULL("2004","验证码已失效"),
    VERIFICATION_CODE_ERROR("2005","验证码有误"),
    VERIFICATION_CODE_TRUE("200","验证码正确"),
    LOGIN_STATE_ERROR("403","请重新登录"),
    POWER_ERROR("401","权限不足"),
    INSERT_USER_ERROR("2006","角色更改失败"),
    CONFIRM_ERROR("2007","两次输入的密码不一致");
    private String result;
    private String errorCode;

    public String getErrorCode() {
    return errorCode;
    }

    public void setErrorCode(String errorCode) {
    this.errorCode = errorCode;
    }

    UserResultEnum(String errorCode, String result) {
    this.errorCode = errorCode;
    this.result = result;
    }

    public String getResult() {
    return result;
    }

    public void setResult(String result) {
    this.result = result;
    }
}
